﻿// <copyright file="LogicalExpressionToken.cs" company="http://www.dymetis.com">
//
// Copyright (c) 2011 Eddie Z. Lin.
//
// This source is subject to the Microsoft Public License.
// See http://www.opensource.org/licenses/ms-pl.
// All other rights reserved.
// 
// </copyright>

namespace Dymetis.Expressions
{
    internal sealed class LogicalExpressionToken
    {
        private readonly string spelling;

        private readonly LogicalExpressionTokenType tokenType;

        public LogicalExpressionToken(LogicalExpressionTokenType tokenType, string spelling)
        {
            this.tokenType = tokenType;
            this.spelling = spelling;
        }

        public string Spelling
        {
            get
            {
                return this.spelling;
            }
        }

        public LogicalExpressionTokenType TokenType
        {
            get
            {
                return this.tokenType;
            }
        }
    }
}
